package com.kenny.api.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Kenny Kam
 * @date 2021/1/8 17:23
 */

@FeignClient(name = "nacos-demo-provider", fallbackFactory = DemoServiceFallback.class)
@RequestMapping("/feign_service")
public interface DemoService {
    @PostMapping("/server/say")
    String say();
}
